package cn.edu.sjtu.spinning.dto;

import cn.edu.sjtu.spinning.util.MathUtil;
import lombok.Data;

/** for mock */
@Data
class MockData {
  private Double spinDownLength;
  private Double spinFeedRate;
  private Double spinRotatingSpeed;
  private Double spinForceX;
  private Double spinForceY;
  private Double spinThickness;
  private Double spinInsideDiameter;
  private Double spinVibration;

  static MockData genRandomData() {
    MockData data = new MockData();
    data.setSpinDownLength(MathUtil.range(2, 8));
    data.setSpinFeedRate(MathUtil.range(1, 6));
    data.setSpinRotatingSpeed(MathUtil.range(2, 10));
    data.setSpinForceX(MathUtil.range(15, 45));
    data.setSpinForceY(MathUtil.range(15, 45));
    data.setSpinThickness(MathUtil.range(2, 4));
    data.setSpinInsideDiameter(MathUtil.range(500, 700));
    data.setSpinVibration(MathUtil.range(0.01, 0.2));
    return data;
  }
}
